//
//  Button+Extension.swift
//  weibo_swift
//
//  Created by dulinlong on 15/7/6.
//  Copyright © 2015年 sheji_56. All rights reserved.
//

import UIKit

extension UIButton{
    
    convenience init(title: String, imageName: String, fontSize: CGFloat, color: UIColor = UIColor.darkGrayColor()){
        self.init()
        
        setTitle(title + " ", forState: UIControlState.Normal)
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        setTitleColor(UIColor.darkGrayColor(), forState: UIControlState.Normal)
    }
}

